package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.MerchantDiscountMapper;
import com.richest.api.service.IMerchantDiscountService;
import com.richest.bean.MerchantDiscountBean;

/**
 * 企业优惠信息管理服务实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 */
@Service
public class MerchantDiscountServiceImpl implements IMerchantDiscountService {

	@Autowired
	private MerchantDiscountMapper mapper;

	@Override
	public Integer merchantDiscountAdd(MerchantDiscountBean bean) {
		return mapper.merchantDiscountAdd(bean);
	}

	@Override
	public Integer merchantDiscountUpdate(MerchantDiscountBean bean) {
		return mapper.merchantDiscountUpdate(bean);
	}

	@Override
	public Integer merchantDiscountDelete(Long id) {
		return mapper.merchantDiscountDelete(id);
	}

	@Override
	public MerchantDiscountBean merchantDiscountSelectOne(Long id) {
		return mapper.merchantDiscountSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> merchantDiscountSelectMap(Map<String, Object> params) {
		return mapper.merchantDiscountSelectMap(params);
	}
}
